Optimal. Leaf size=95 \[ -\frac {a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a}}\right )}{f}+\frac {(a-b)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{f}+\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3751, 457, 86,
162, 65, 214} \begin {gather*} -\frac {a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a}}\right )}{f}+\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {(a-b)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 86
Rule 162
Rule 214
Rule 457
Rule 3751
Rubi steps
\begin {align*} \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b x^2\right )^{3/2}}{x \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \frac {(a+b x)^{3/2}}{x (1+x)} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {\text {Subst}\left (\int \frac {a^2+(2 a-b) b x}{x (1+x) \sqrt {a+b x}} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {a^2 \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\tan ^2(e+f x)\right )}{2 f}-\frac {(a-b)^2 \text {Subst}\left (\int \frac {1}{(1+x) \sqrt {a+b x}} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {a^2 \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \tan ^2(e+f x)}\right )}{b f}-\frac {(a-b)^2 \text {Subst}\left (\int \frac {1}{1-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \tan ^2(e+f x)}\right )}{b f}\\ &=-\frac {a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a}}\right )}{f}+\frac {(a-b)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{f}+\frac {b \sqrt {a+b \tan ^2(e+f x)}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 90, normalized size = 0.95 \begin {gather*} \frac {-a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a}}\right )+(a-b)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )+b \sqrt {a+b \tan ^2(e+f x)}}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1764\) vs.
\(2(81)=162\).
time = 0.30, size = 1765, normalized size = 18.58
method | result | size |
default | \(\text {Expression too large to display}\) | \(1765\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.92, size = 619, normalized size = 6.52 \begin {gather*} \left [-\frac {{\left (a - b\right )}^{\frac {3}{2}} \log \left (-\frac {b^{2} \tan \left (f x + e\right )^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 4 \, {\left (b \tan \left (f x + e\right )^{2} + 2 \, a - b\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a - b} + 8 \, a^{2} - 8 \, a b + b^{2}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) - 2 \, a^{\frac {3}{2}} \log \left (\frac {b \tan \left (f x + e\right )^{2} - 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a} + 2 \, a}{\tan \left (f x + e\right )^{2}}\right ) - 4 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} b}{4 \, f}, \frac {4 \, \sqrt {-a} a \arctan \left (\frac {\sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a}}{a}\right ) - {\left (a - b\right )}^{\frac {3}{2}} \log \left (-\frac {b^{2} \tan \left (f x + e\right )^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 4 \, {\left (b \tan \left (f x + e\right )^{2} + 2 \, a - b\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a - b} + 8 \, a^{2} - 8 \, a b + b^{2}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) + 4 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} b}{4 \, f}, \frac {{\left (-a + b\right )}^{\frac {3}{2}} \arctan \left (\frac {2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b}}{b \tan \left (f x + e\right )^{2} + 2 \, a - b}\right ) + a^{\frac {3}{2}} \log \left (\frac {b \tan \left (f x + e\right )^{2} - 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a} + 2 \, a}{\tan \left (f x + e\right )^{2}}\right ) + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} b}{2 \, f}, \frac {2 \, \sqrt {-a} a \arctan \left (\frac {\sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a}}{a}\right ) + {\left (-a + b\right )}^{\frac {3}{2}} \arctan \left (\frac {2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b}}{b \tan \left (f x + e\right )^{2} + 2 \, a - b}\right ) + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} b}{2 \, f}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}} \cot {\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 12.03, size = 546, normalized size = 5.75 \begin {gather*} \frac {b\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}}{f}+\frac {\mathrm {atanh}\left (\frac {6\,a^3\,b^3\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3-3\,a^2\,b+3\,a\,b^2-b^3}}{6\,a^5\,b^3-18\,a^4\,b^4+20\,a^3\,b^5-10\,a^2\,b^6+2\,a\,b^7}-\frac {6\,a^2\,b^4\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3-3\,a^2\,b+3\,a\,b^2-b^3}}{6\,a^5\,b^3-18\,a^4\,b^4+20\,a^3\,b^5-10\,a^2\,b^6+2\,a\,b^7}+\frac {2\,a\,b^5\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3-3\,a^2\,b+3\,a\,b^2-b^3}}{6\,a^5\,b^3-18\,a^4\,b^4+20\,a^3\,b^5-10\,a^2\,b^6+2\,a\,b^7}\right )\,\sqrt {{\left (a-b\right )}^3}}{f}-\frac {\mathrm {atanh}\left (\frac {2\,b^6\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3}}{-6\,a^5\,b^3+12\,a^4\,b^4-8\,a^3\,b^5+2\,a^2\,b^6}-\frac {8\,a\,b^5\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3}}{-6\,a^5\,b^3+12\,a^4\,b^4-8\,a^3\,b^5+2\,a^2\,b^6}+\frac {12\,a^2\,b^4\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3}}{-6\,a^5\,b^3+12\,a^4\,b^4-8\,a^3\,b^5+2\,a^2\,b^6}-\frac {6\,a^3\,b^3\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}\,\sqrt {a^3}}{-6\,a^5\,b^3+12\,a^4\,b^4-8\,a^3\,b^5+2\,a^2\,b^6}\right )\,\sqrt {a^3}}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________